Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS-3223] Consistently use Integer for Product price #41

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

jrodewig
Copy link
Contributor

@jrodewig jrodewig commented Aug 13, 2024

Ticket(s): DOCS-3223

Problem

The JS sample app is inconsistent around handling of Product price values:

  • The seed data uses Integers for price, but some tests use floats.
  • The middleware ensures price is greater than 0, but the check constraint allows price values of 0.
  • The Product collection schema doesn't enforce an Integer for price values.

Solution

Update the sample app to only support price as an integer greater than 0.

Related

Demo data: https://github.com/fauna/fauna-dashboard/pull/1966

@jrodewig jrodewig changed the title [DOCS-3223] Consistently use Integer for Product price [DOCS-3223] Consistently use Integer for Product price Aug 13, 2024
@jrodewig jrodewig merged commit 3e8357b into main Aug 20, 2024
@jrodewig jrodewig deleted the use-int-prices branch August 20, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants